package com.vichat.user.entity;


import javax.persistence.*;

/***************
 *author: autogen
 *version: 2018-11-23 09:54:46.202
 */
@Entity
@Table(name = "agent_company",catalog = "ccsdb")
public class AgentCompany implements java.io.Serializable{

	private static final long serialVersionUID = 1L;
	


    public static final String TABLE = "agent_company";

    /**公司编号 */
	public static final String ALIAS_AGENT_ID = "agent_id";
    /**企业名称 */
	public static final String ALIAS_COMPANY_NAME = "company_name";
    /**企业地址 */
	public static final String ALIAS_ADDRESS = "address";
    /**企业邮箱 */
	public static final String ALIAS_EMAIL = "email";
    /**管理员 */
	public static final String ALIAS_ADMIN_NAME = "admin_name";
    /**联系方式 */
	public static final String ALIAS_MOBILE = "mobile";
    /**数据 0 无效 1 有效 */
	public static final String ALIAS_STATE = "state";
    /**创建时间 */
	public static final String ALIAS_CREATE_TIME = "create_time";
    /**修改时间 */
	public static final String ALIAS_UPDATE_TIME = "update_time";
    /**授权月数 */
	public static final String ALIAS_AUTH_MONTH = "auth_month";
    /**授权人数(0 收费时填写,-1为不限制人数) */
	public static final String ALIAS_AUTH_NUMBER = "auth_number";
    /**备注 */
	public static final String ALIAS_REMARK = "remark";
    /**上级代理商编号 */
	public static final String ALIAS_PARENT_ID = "parent_id";
    /**网址 */
	public static final String ALIAS_URL = "url";
    /**代理商编号 */
	public static final String ALIAS_AGENT_CODE = "agent_code";
    /**代理商等级 */
	public static final String ALIAS_LEAF_LEVEL = "leaf_level";
	
	

 	@Id
@   GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "agent_id", unique = true, nullable = false)
    public java.lang.Long agentId;
  
 	@Column(name = "company_name")
    public java.lang.String companyName;
  
 	@Column(name = "address")
    public java.lang.String address;
  
 	@Column(name = "email")
    public java.lang.String email;
  
 	@Column(name = "admin_name")
    public java.lang.String adminName;
  
 	@Column(name = "mobile")
    public java.lang.String mobile;
  
 	@Column(name = "state")
    public java.lang.Long state = 1l;
  
 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "create_time")
    public java.util.Date createTime;
  
 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "update_time")
    public java.util.Date updateTime;
  
 	@Column(name = "auth_month")
    public java.lang.Long authMonth;
  
 	@Column(name = "auth_number")
    public java.lang.Long authNumber;
  
 	@Column(name = "remark")
    public java.lang.String remark;
  
 	@Column(name = "parent_id")
    public java.lang.Long parentId;
  
 	@Column(name = "url")
    public java.lang.String url;
  
 	@Column(name = "agent_code")
    public java.lang.String agentCode;
  
 	@Column(name = "leaf_level")
    public java.lang.Long leafLevel;
  





	public java.lang.Long getAgentId() {
		return this.agentId;
	}
	
	public void setAgentId(java.lang.Long value) {
		this.agentId = value;
	}

	public java.lang.String getCompanyName() {
		return this.companyName;
	}
	
	public void setCompanyName(java.lang.String value) {
		this.companyName = value;
	}

	public java.lang.String getAddress() {
		return this.address;
	}
	
	public void setAddress(java.lang.String value) {
		this.address = value;
	}

	public java.lang.String getEmail() {
		return this.email;
	}
	
	public void setEmail(java.lang.String value) {
		this.email = value;
	}

	public java.lang.String getAdminName() {
		return this.adminName;
	}
	
	public void setAdminName(java.lang.String value) {
		this.adminName = value;
	}

	public java.lang.String getMobile() {
		return this.mobile;
	}
	
	public void setMobile(java.lang.String value) {
		this.mobile = value;
	}

	public java.lang.Long getState() {
		return this.state;
	}
	
	public void setState(java.lang.Long value) {
		this.state = value;
	}

	public java.util.Date getCreateTime() {
		return this.createTime;
	}
	
	public void setCreateTime(java.util.Date value) {
		this.createTime = value;
	}

	public java.util.Date getUpdateTime() {
		return this.updateTime;
	}
	
	public void setUpdateTime(java.util.Date value) {
		this.updateTime = value;
	}

	public java.lang.Long getAuthMonth() {
		return this.authMonth;
	}
	
	public void setAuthMonth(java.lang.Long value) {
		this.authMonth = value;
	}

	public java.lang.Long getAuthNumber() {
		return this.authNumber;
	}
	
	public void setAuthNumber(java.lang.Long value) {
		this.authNumber = value;
	}

	public java.lang.String getRemark() {
		return this.remark;
	}
	
	public void setRemark(java.lang.String value) {
		this.remark = value;
	}

	public java.lang.Long getParentId() {
		return this.parentId;
	}
	
	public void setParentId(java.lang.Long value) {
		this.parentId = value;
	}

	public java.lang.String getUrl() {
		return this.url;
	}
	
	public void setUrl(java.lang.String value) {
		this.url = value;
	}

	public java.lang.String getAgentCode() {
		return this.agentCode;
	}
	
	public void setAgentCode(java.lang.String value) {
		this.agentCode = value;
	}

	public java.lang.Long getLeafLevel() {
		return this.leafLevel;
	}
	
	public void setLeafLevel(java.lang.Long value) {
		this.leafLevel = value;
	}


	
	public AgentCompany() {
	}
	
	public AgentCompany(boolean qryflag) {
	    if(qryflag){
	    		this.agentId = null;
				this.companyName = null;
				this.address = null;
				this.email = null;
				this.adminName = null;
				this.mobile = null;
				this.state = null;
				this.createTime = null;
				this.updateTime = null;
				this.authMonth = null;
				this.authNumber = null;
				this.remark = null;
				this.parentId = null;
				this.url = null;
				this.agentCode = null;
				this.leafLevel = null;
			    }
	}


	public AgentCompany(
	    java.lang.Long inAgentId,
	    java.lang.String inCompanyName,
	    java.lang.String inAddress,
	    java.lang.String inEmail,
	    java.lang.String inAdminName,
	    java.lang.String inMobile,
	    java.lang.Long inState,
	    java.util.Date inCreateTime,
	    java.util.Date inUpdateTime,
	    java.lang.Long inAuthMonth,
	    java.lang.Long inAuthNumber,
	    java.lang.String inRemark,
	    java.lang.Long inParentId,
	    java.lang.String inUrl,
	    java.lang.String inAgentCode,
		java.lang.Long inLeafLevel
	 ) {
		super();
				this.agentId = inAgentId;
				this.companyName = inCompanyName;
				this.address = inAddress;
				this.email = inEmail;
				this.adminName = inAdminName;
				this.mobile = inMobile;
				this.state = inState;
				this.createTime = inCreateTime;
				this.updateTime = inUpdateTime;
				this.authMonth = inAuthMonth;
				this.authNumber = inAuthNumber;
				this.remark = inRemark;
				this.parentId = inParentId;
				this.url = inUrl;
				this.agentCode = inAgentCode;
				this.leafLevel = inLeafLevel;
			}

    @Transient
    private String account;

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

}

